#ifndef __RIVER
#define __RIVER

#include "..\LoginStream\LoginStream.h"
#include "..\NewsStream\NewsStream.h"
#include "..\Log\Log.h"

class River : public NewsStream, public LoginStream, public virtual Stream
{
private:
	Log m_log;
	char msg[1024];
	bool m_running;

public:
	River() 
	{
		m_running = true;
		char tmp[1024] = "This is a message";
		strcpy(msg,tmp);
	}

	~River() {}

	void TRACE(int level, char * msg)
	{
		m_log.TRACE(level, msg);
	}

	bool running()
	{
		return m_running;
	}

	void mainloop()
	{
		char message[1024];
		sprintf(message, "%s:%p", msg, &msg);
		TRACE(1, message);
	}
};

#endif